/*  File Name	: ConnectorTest.h
 *  Author		: Pang Jiacai
 *	 E-mail		: 823960168@qq.com
 *  Created on	: 2012-7-4
 *  Description:
 */

#ifndef CONNECTORTEST_H_
#define CONNECTORTEST_H_

#include "Service.h"
#include "Connector.h"
#include "Reactor.h"

#include "SockConnector.h"
#include "EventHandler.h"
#include "EpollReactor.h"

class ConnectorService:virtual public Service//<ConnectorService>
{
public:
	ConnectorService(int p=0);
	virtual ~ConnectorService();

	virtual int recv_msg(MessageBlock *mb,const int limit_size = 1024,int flag=MSG_NOSIGNAL);
private:
	typedef Service super;
};

template <class SVC_HANDLER>
class GateConnector: public Connector<SVC_HANDLER,SockConnector>
{
public:
	GateConnector();
	virtual ~GateConnector();

private:

};

template <class SVC_HANDLER>
GateConnector<SVC_HANDLER>::GateConnector()
{

}

template <class SVC_HANDLER>
GateConnector<SVC_HANDLER>::~GateConnector()
{

}
#endif /* CONNECTORTEST_H_ */
